// check integer
owl_byte owl_check_wchar_unicode(owl_wchar ch)
{
  // wont return encoded size, treat value as boolean
  if (ch >= OWL_MIN_UNICODE && ch <= OWL_MAX_UNICODE)
    return 1;
  return 0;
}

// print integer
owl_byte owl_print_wchar_unicode(owl_wchar ch)
{
  // wont return encoded size, treat value as boolean
  owl_byte check = owl_check_wchar_unicode(ch);
  if (check == 0)
    printf(OWL_INV_UNICODE_STR);
  else {
    if (ch < 0x100)
      printf("%02llX", ch);
    else if (ch < 0x10000)
      printf("%04llX", ch);
    else if (ch < 0x1000000)
      printf("%06llX", ch);
    else
      printf("%08llX", ch);
  }
  return check;
}
